package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhx
 * @since 2025-01-17
 */
@TableName("topic_tag")
public class TopicTag implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标签ID，自增整数，作为主键，唯一标识每个话题标签
     */
    @TableId(value = "tag_id", type = IdType.AUTO)
    private Integer tagId;

    /**
     * 标签名称，字符串类型，长度为50，不能为空
     */
    @TableField("tag_name")
    private String tagName;

    /**
     * 标签描述，文本类型，用于存储标签的简要说明
     */
    @TableField("tag_description")
    private String tagDescription;

    public Integer getTagId() {
        return tagId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }
    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }
    public String getTagDescription() {
        return tagDescription;
    }

    public void setTagDescription(String tagDescription) {
        this.tagDescription = tagDescription;
    }

    @Override
    public String toString() {
        return "TopicTag{" +
            "tagId=" + tagId +
            ", tagName=" + tagName +
            ", tagDescription=" + tagDescription +
        "}";
    }
}
